package com.cetc.operate.audit.util;

import java.util.HashMap;

public class OperateAuditHelper {

    private final static String USER_ID = "userId";

    private final static String CONTENT = "content";

    private static final ThreadLocal<HashMap> OPERATE_INFO_LOCAL = new ThreadLocal<>();

    public static String getUserId() {
        return OPERATE_INFO_LOCAL.get().get(USER_ID).toString();
    }

    public static void setUserId(String userId) {
        OPERATE_INFO_LOCAL.get().put(USER_ID, userId);
    }

    public static String getContent() {
        return OPERATE_INFO_LOCAL.get().get(CONTENT).toString();
    }

    public static void setContent(String content) {
        OPERATE_INFO_LOCAL.get().put(CONTENT, content);
    }
}
